package com.vhall.component.entity.gift.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class GiftSortVO implements Serializable {
    /**
     * 表情id
     */
    @NotNull(message = "表情id不能为空")
    private Long id;
    /**
     * 表情顺序
     */
    @NotNull(message = "不能为空")
    @ParamName("gift_sort")
    @JsonProperty(value = "gift_sort")
    @Range(min = 1, message = "该序号值不能输入")
    private Integer giftSort;
}

